package com.like.bluetooth.callback

import com.like.bluetooth.exception.BluetoothException

abstract class BluetoothCallback<T> {
    abstract fun onSuccess(data: T)

    fun onError(msg: String, code: Int = -1) {
        onError(BluetoothException(msg, code))
    }

    open fun onError(exception: BluetoothException) {}
}